package interfaz;

import javax.swing.JPanel;
import java.awt.GridBagLayout;
import java.awt.Color;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import java.awt.SystemColor;
import javax.swing.SwingConstants;

public class Registro extends JPanel {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_9;
	private JTextField textField_10;
	private JTextField textField_11;
	private JTextField textField_12;
	private JTextField textField_13;

	/**
	 * Create the panel para el registro de los interesados
	 */
	
	//FALTA AGREGAR LOS DATOS DEL CONYUGE Y LOS DATOS DEL BANCO
	public Registro() {
		setBackground(SystemColor.menu);
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{0, 39, 0, 0, 0};
		gridBagLayout.rowHeights = new int[]{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		setLayout(gridBagLayout);
		
		JLabel lblNombre = new JLabel("Nombre");
		lblNombre.setHorizontalAlignment(SwingConstants.LEFT);
		GridBagConstraints gbc_lblNombre = new GridBagConstraints();
		gbc_lblNombre.ipadx = 5;
		gbc_lblNombre.anchor = GridBagConstraints.BASELINE_LEADING;
		gbc_lblNombre.insets = new Insets(0, 5, 5, 5);
		gbc_lblNombre.gridx = 0;
		gbc_lblNombre.gridy = 0;
		add(lblNombre, gbc_lblNombre);
		
		textField = new JTextField();
		GridBagConstraints gbc_textField = new GridBagConstraints();
		gbc_textField.anchor = GridBagConstraints.SOUTHWEST;
		gbc_textField.insets = new Insets(0, 0, 5, 5);
		gbc_textField.gridx = 1;
		gbc_textField.gridy = 0;
		add(textField, gbc_textField);
		textField.setColumns(10);
		
		JLabel lblApellido = new JLabel("Apellido");
		GridBagConstraints gbc_lblApellido = new GridBagConstraints();
		gbc_lblApellido.fill = GridBagConstraints.VERTICAL;
		gbc_lblApellido.anchor = GridBagConstraints.WEST;
		gbc_lblApellido.insets = new Insets(0, 5, 5, 5);
		gbc_lblApellido.gridx = 0;
		gbc_lblApellido.gridy = 1;
		add(lblApellido, gbc_lblApellido);
		
		textField_1 = new JTextField();
		GridBagConstraints gbc_textField_1 = new GridBagConstraints();
		gbc_textField_1.anchor = GridBagConstraints.WEST;
		gbc_textField_1.insets = new Insets(0, 0, 5, 5);
		gbc_textField_1.gridx = 1;
		gbc_textField_1.gridy = 1;
		add(textField_1, gbc_textField_1);
		textField_1.setColumns(10);
		
		JLabel lblDni = new JLabel("Tipo Documento");
		GridBagConstraints gbc_lblDni = new GridBagConstraints();
		gbc_lblDni.anchor = GridBagConstraints.EAST;
		gbc_lblDni.insets = new Insets(0, 5, 5, 5);
		gbc_lblDni.gridx = 0;
		gbc_lblDni.gridy = 2;
		add(lblDni, gbc_lblDni);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setModel(new DefaultComboBoxModel(new String[] {"DNI", "LC", "LE"}));
		GridBagConstraints gbc_comboBox_1 = new GridBagConstraints();
		gbc_comboBox_1.insets = new Insets(0, 0, 5, 5);
		gbc_comboBox_1.fill = GridBagConstraints.HORIZONTAL;
		gbc_comboBox_1.gridx = 1;
		gbc_comboBox_1.gridy = 2;
		add(comboBox_1, gbc_comboBox_1);
		
		JLabel lblNmero = new JLabel("N\u00FAmero");
		GridBagConstraints gbc_lblNmero = new GridBagConstraints();
		gbc_lblNmero.insets = new Insets(0, 0, 5, 5);
		gbc_lblNmero.anchor = GridBagConstraints.WEST;
		gbc_lblNmero.gridx = 2;
		gbc_lblNmero.gridy = 2;
		add(lblNmero, gbc_lblNmero);
		
		textField_4 = new JTextField();
		GridBagConstraints gbc_textField_4 = new GridBagConstraints();
		gbc_textField_4.insets = new Insets(0, 0, 5, 0);
		gbc_textField_4.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_4.gridx = 3;
		gbc_textField_4.gridy = 2;
		add(textField_4, gbc_textField_4);
		textField_4.setColumns(10);
		
		JLabel lblFechaDeNacimiento = new JLabel("Fecha de Nacimiento");
		GridBagConstraints gbc_lblFechaDeNacimiento = new GridBagConstraints();
		gbc_lblFechaDeNacimiento.anchor = GridBagConstraints.WEST;
		gbc_lblFechaDeNacimiento.insets = new Insets(0, 5, 5, 5);
		gbc_lblFechaDeNacimiento.gridx = 0;
		gbc_lblFechaDeNacimiento.gridy = 3;
		add(lblFechaDeNacimiento, gbc_lblFechaDeNacimiento);
		
		textField_3 = new JTextField();
		GridBagConstraints gbc_textField_3 = new GridBagConstraints();
		gbc_textField_3.anchor = GridBagConstraints.WEST;
		gbc_textField_3.insets = new Insets(0, 0, 5, 5);
		gbc_textField_3.gridx = 1;
		gbc_textField_3.gridy = 3;
		add(textField_3, gbc_textField_3);
		textField_3.setColumns(10);
		
		JRadioButton rdbtnMasculino = new JRadioButton("Masculino");
		GridBagConstraints gbc_rdbtnMasculino = new GridBagConstraints();
		gbc_rdbtnMasculino.anchor = GridBagConstraints.WEST;
		gbc_rdbtnMasculino.insets = new Insets(0, 5, 5, 5);
		gbc_rdbtnMasculino.gridx = 0;
		gbc_rdbtnMasculino.gridy = 4;
		add(rdbtnMasculino, gbc_rdbtnMasculino);
		
		JRadioButton rdbtnFemenino = new JRadioButton("Femenino");
		GridBagConstraints gbc_rdbtnFemenino = new GridBagConstraints();
		gbc_rdbtnFemenino.anchor = GridBagConstraints.WEST;
		gbc_rdbtnFemenino.insets = new Insets(0, 0, 5, 5);
		gbc_rdbtnFemenino.gridx = 1;
		gbc_rdbtnFemenino.gridy = 4;
		add(rdbtnFemenino, gbc_rdbtnFemenino);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"Soltero/a", "Casado/a", "Divorciado/a", "Vuido/a"}));
		GridBagConstraints gbc_comboBox = new GridBagConstraints();
		gbc_comboBox.gridwidth = 2;
		gbc_comboBox.insets = new Insets(0, 0, 5, 0);
		gbc_comboBox.fill = GridBagConstraints.HORIZONTAL;
		gbc_comboBox.gridx = 2;
		gbc_comboBox.gridy = 4;
		add(comboBox, gbc_comboBox);
		
		JLabel lblDomicilio = new JLabel("Calle");
		GridBagConstraints gbc_lblDomicilio = new GridBagConstraints();
		gbc_lblDomicilio.anchor = GridBagConstraints.ABOVE_BASELINE_LEADING;
		gbc_lblDomicilio.insets = new Insets(0, 5, 5, 5);
		gbc_lblDomicilio.gridx = 0;
		gbc_lblDomicilio.gridy = 6;
		add(lblDomicilio, gbc_lblDomicilio);
		
		textField_5 = new JTextField();
		GridBagConstraints gbc_textField_5 = new GridBagConstraints();
		gbc_textField_5.anchor = GridBagConstraints.WEST;
		gbc_textField_5.insets = new Insets(0, 0, 5, 5);
		gbc_textField_5.gridx = 1;
		gbc_textField_5.gridy = 6;
		add(textField_5, gbc_textField_5);
		textField_5.setColumns(10);
		
		JLabel lblNmero_1 = new JLabel("N\u00FAmero");
		GridBagConstraints gbc_lblNmero_1 = new GridBagConstraints();
		gbc_lblNmero_1.anchor = GridBagConstraints.WEST;
		gbc_lblNmero_1.insets = new Insets(0, 0, 5, 5);
		gbc_lblNmero_1.gridx = 2;
		gbc_lblNmero_1.gridy = 6;
		add(lblNmero_1, gbc_lblNmero_1);
		
		textField_6 = new JTextField();
		GridBagConstraints gbc_textField_6 = new GridBagConstraints();
		gbc_textField_6.insets = new Insets(0, 0, 5, 0);
		gbc_textField_6.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_6.gridx = 3;
		gbc_textField_6.gridy = 6;
		add(textField_6, gbc_textField_6);
		textField_6.setColumns(10);
		
		JLabel lblDepartamento = new JLabel("Departamento");
		GridBagConstraints gbc_lblDepartamento = new GridBagConstraints();
		gbc_lblDepartamento.anchor = GridBagConstraints.WEST;
		gbc_lblDepartamento.insets = new Insets(0, 5, 5, 5);
		gbc_lblDepartamento.gridx = 0;
		gbc_lblDepartamento.gridy = 7;
		add(lblDepartamento, gbc_lblDepartamento);
		
		textField_7 = new JTextField();
		GridBagConstraints gbc_textField_7 = new GridBagConstraints();
		gbc_textField_7.anchor = GridBagConstraints.WEST;
		gbc_textField_7.insets = new Insets(0, 0, 5, 5);
		gbc_textField_7.gridx = 1;
		gbc_textField_7.gridy = 7;
		add(textField_7, gbc_textField_7);
		textField_7.setColumns(10);
		
		JLabel lblPiso = new JLabel("Piso");
		GridBagConstraints gbc_lblPiso = new GridBagConstraints();
		gbc_lblPiso.anchor = GridBagConstraints.WEST;
		gbc_lblPiso.insets = new Insets(0, 0, 5, 5);
		gbc_lblPiso.gridx = 2;
		gbc_lblPiso.gridy = 7;
		add(lblPiso, gbc_lblPiso);
		
		textField_8 = new JTextField();
		GridBagConstraints gbc_textField_8 = new GridBagConstraints();
		gbc_textField_8.insets = new Insets(0, 0, 5, 0);
		gbc_textField_8.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_8.gridx = 3;
		gbc_textField_8.gridy = 7;
		add(textField_8, gbc_textField_8);
		textField_8.setColumns(10);
		
		JLabel lblLocalidad = new JLabel("Localidad");
		GridBagConstraints gbc_lblLocalidad = new GridBagConstraints();
		gbc_lblLocalidad.anchor = GridBagConstraints.WEST;
		gbc_lblLocalidad.insets = new Insets(0, 5, 5, 5);
		gbc_lblLocalidad.gridx = 0;
		gbc_lblLocalidad.gridy = 8;
		add(lblLocalidad, gbc_lblLocalidad);
		
		textField_9 = new JTextField();
		GridBagConstraints gbc_textField_9 = new GridBagConstraints();
		gbc_textField_9.anchor = GridBagConstraints.WEST;
		gbc_textField_9.insets = new Insets(0, 0, 5, 5);
		gbc_textField_9.gridx = 1;
		gbc_textField_9.gridy = 8;
		add(textField_9, gbc_textField_9);
		textField_9.setColumns(10);
		
		JLabel lblProvincia = new JLabel("Provincia");
		GridBagConstraints gbc_lblProvincia = new GridBagConstraints();
		gbc_lblProvincia.anchor = GridBagConstraints.WEST;
		gbc_lblProvincia.insets = new Insets(0, 0, 5, 5);
		gbc_lblProvincia.gridx = 2;
		gbc_lblProvincia.gridy = 8;
		add(lblProvincia, gbc_lblProvincia);
		
		textField_10 = new JTextField();
		GridBagConstraints gbc_textField_10 = new GridBagConstraints();
		gbc_textField_10.insets = new Insets(0, 0, 5, 0);
		gbc_textField_10.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_10.gridx = 3;
		gbc_textField_10.gridy = 8;
		add(textField_10, gbc_textField_10);
		textField_10.setColumns(10);
		
		JLabel lblCuitcuil = new JLabel("CUIT/CUIL");
		GridBagConstraints gbc_lblCuitcuil = new GridBagConstraints();
		gbc_lblCuitcuil.anchor = GridBagConstraints.WEST;
		gbc_lblCuitcuil.insets = new Insets(0, 5, 5, 5);
		gbc_lblCuitcuil.gridx = 0;
		gbc_lblCuitcuil.gridy = 9;
		add(lblCuitcuil, gbc_lblCuitcuil);
		
		textField_11 = new JTextField();
		GridBagConstraints gbc_textField_11 = new GridBagConstraints();
		gbc_textField_11.anchor = GridBagConstraints.WEST;
		gbc_textField_11.insets = new Insets(0, 0, 5, 5);
		gbc_textField_11.gridx = 1;
		gbc_textField_11.gridy = 9;
		add(textField_11, gbc_textField_11);
		textField_11.setColumns(10);
		
		JLabel lblSituacinLaboral = new JLabel("Situaci\u00F3n Laboral");
		GridBagConstraints gbc_lblSituacinLaboral = new GridBagConstraints();
		gbc_lblSituacinLaboral.anchor = GridBagConstraints.WEST;
		gbc_lblSituacinLaboral.insets = new Insets(0, 5, 0, 5);
		gbc_lblSituacinLaboral.gridx = 0;
		gbc_lblSituacinLaboral.gridy = 10;
		add(lblSituacinLaboral, gbc_lblSituacinLaboral);
		
		textField_12 = new JTextField();
		GridBagConstraints gbc_textField_12 = new GridBagConstraints();
		gbc_textField_12.anchor = GridBagConstraints.WEST;
		gbc_textField_12.insets = new Insets(0, 0, 0, 5);
		gbc_textField_12.gridx = 1;
		gbc_textField_12.gridy = 10;
		add(textField_12, gbc_textField_12);
		textField_12.setColumns(10);
		
		JLabel lblIngresosAprox = new JLabel("Ingresos");
		GridBagConstraints gbc_lblIngresosAprox = new GridBagConstraints();
		gbc_lblIngresosAprox.anchor = GridBagConstraints.WEST;
		gbc_lblIngresosAprox.insets = new Insets(0, 0, 0, 5);
		gbc_lblIngresosAprox.gridx = 2;
		gbc_lblIngresosAprox.gridy = 10;
		add(lblIngresosAprox, gbc_lblIngresosAprox);
		
		textField_13 = new JTextField();
		GridBagConstraints gbc_textField_13 = new GridBagConstraints();
		gbc_textField_13.fill = GridBagConstraints.HORIZONTAL;
		gbc_textField_13.gridx = 3;
		gbc_textField_13.gridy = 10;
		add(textField_13, gbc_textField_13);
		textField_13.setColumns(10);

	}
	
	//Metodo que inicializa la interfaz para la carga de datos
	void inicializarInterfaz(){
		
	}
	
	//Metodo que limpia los campos de la interfaz grafica
	void limpiarCampos(){
		
	}
	
	
	

}

